<table width = "100%" border = "1">
  <tr>
    <td valign = "top" >
      <%= render :partial => "sideffects_info" %>
    </td>
    <td valign = "top" width = "25%">
      Category <strong><%= h(@category.name)%></strong> General Statistics:
      <br />
      <br />
      Drugs: <strong><%= @total_drugs_number %></strong> &nbsp; &nbsp; &nbsp;
      Ratings: <strong><%= @total_ratings_number %></strong> &nbsp; &nbsp; &nbsp;
      Side Effects: <strong><%= @total_sideffects_number %></strong>
      <table width = "100%">
        <tr bgcolor = "#87a2a3">
          <td>Drug</td>
          <td>Ratings</td>
        </tr>
        <% count = 0 %>
        <% @drugs.each do |drug| %>
          <tr  bgcolor = "<%= count % 2 == 0 ? "#ffffff" : "#cae8ea" %>">
            <td align = "left">
              <%= link_to(h(drug.name), :controller => "drug", :action => "show", :id => drug.id) %>
            </td>
            <td align = "right">
              <strong><%= drug.ratings_number%></strong>
            </td>
          </tr>
          <% count += 1 %>
        <% end %>
      </table>
    </td>
  </tr>
</table>